package com.example.demo;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;

@Data
@TableName(value = "test",autoResultMap = true)
public class MyTest {

    @TableId(type = IdType.AUTO)
    private Integer id;


    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject prop;
}
